﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;
using System.Data;
namespace BUS
{
    public partial class NCC_BUS
    {
        NCC_DAO ncc_dao;
        public bool ThemNCC(NCC ncc_dto)
        {
            ncc_dao = new NCC_DAO();
            return ncc_dao.ThemNCC(ncc_dto);
        }
        public bool CapNhatNCC(NCC ncc_dto)
        {
            ncc_dao = new NCC_DAO();
            return ncc_dao.CapNhatNCC(ncc_dto);
        }
        public DataTable DanhSachNCC()
        {
            ncc_dao = new NCC_DAO();
            DataTable dt = new DataTable();
            dt = ncc_dao.DanhSachNCC();
            return dt;
        }
        public DataTable DanhSachNCC_Ma(string strMa)
        {
            ncc_dao = new NCC_DAO();
            DataTable dt = new DataTable();
            dt = ncc_dao.DanhSachNCC_Ma(strMa);
            return dt;
        }
        public DataTable DanhSachNCC_MaNVL(string strMa)
        {
            ncc_dao = new NCC_DAO();
            DataTable dt = new DataTable();
            dt = ncc_dao.DanhSachNCC_MaNVL(strMa);
            return dt;
        }
        public string MaNCCTang()
        {
            ncc_dao = new NCC_DAO();
            return ncc_dao.MaNCCTang();
        }
        public bool XoaNCC(NCC ncc_dto)
        {
            ncc_dao = new NCC_DAO();
            return ncc_dao.XoaNCC(ncc_dto);
        }
    }
}
